#include "Thread.hpp"
#include <unistd.h>

using namespace ThreadModlue;

class ThreadDate
{
public:
    pthread_t tid;
    std::string name;

};

void Count(ThreadDate td)
{
    while (true)
    {
        std::cout << "我是一个新线程" << std::endl;
        sleep(1);
    }
}

int main()
{
    // int cnt = 10;
    ThreadDate td;
    Thread<ThreadDate> t(Count, td);

    t.Start();

    t.Join();
    return 0;
}